/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package proyecto2.vista;

/**
 *
 * @author jvm
 */
public class ventana extends javax.swing.JFrame {

    /**
     * Creates new form ventana
     */
    public ventana() {
        initComponents(); 
        this.setLocationRelativeTo(null);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        all = new javax.swing.JPanel();
        cargar = new javax.swing.JButton();
        intro = new javax.swing.JLabel();
        andres = new javax.swing.JLabel();
        javi = new javax.swing.JLabel();
        ano = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        all.setBackground(new java.awt.Color(0, 0, 0));

        cargar.setBackground(new java.awt.Color(51, 255, 51));
        cargar.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
        cargar.setForeground(new java.awt.Color(0, 0, 0));
        cargar.setText("Cargar");
        cargar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                cargarMouseClicked(evt);
            }
        });

        intro.setBackground(new java.awt.Color(204, 255, 204));
        intro.setFont(new java.awt.Font("Dialog", 1, 24)); // NOI18N
        intro.setForeground(new java.awt.Color(0, 255, 0));
        intro.setText("Proyecto de Paradigmas de Programación");

        andres.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
        andres.setForeground(new java.awt.Color(51, 255, 51));
        andres.setText("Andrés Mata Lobo");

        javi.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
        javi.setForeground(new java.awt.Color(51, 255, 51));
        javi.setText("Javier Buzano González");

        ano.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
        ano.setForeground(new java.awt.Color(51, 255, 51));
        ano.setText("Año: 2013");

        javax.swing.GroupLayout allLayout = new javax.swing.GroupLayout(all);
        all.setLayout(allLayout);
        allLayout.setHorizontalGroup(
            allLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, allLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(intro, javax.swing.GroupLayout.PREFERRED_SIZE, 520, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(70, 70, 70))
            .addGroup(allLayout.createSequentialGroup()
                .addGroup(allLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(allLayout.createSequentialGroup()
                        .addGap(296, 296, 296)
                        .addGroup(allLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(cargar)
                            .addComponent(ano)))
                    .addGroup(allLayout.createSequentialGroup()
                        .addGap(246, 246, 246)
                        .addComponent(andres))
                    .addGroup(allLayout.createSequentialGroup()
                        .addGap(221, 221, 221)
                        .addComponent(javi)))
                .addContainerGap(239, Short.MAX_VALUE))
        );
        allLayout.setVerticalGroup(
            allLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, allLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(intro)
                .addGap(41, 41, 41)
                .addComponent(andres)
                .addGap(73, 73, 73)
                .addComponent(javi)
                .addGap(76, 76, 76)
                .addComponent(ano)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 88, Short.MAX_VALUE)
                .addComponent(cargar)
                .addGap(61, 61, 61))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(all, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(all, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void cargarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cargarMouseClicked
        new ventana0().setVisible(true); 
        this.dispose();
    }//GEN-LAST:event_cargarMouseClicked

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(ventana.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(ventana.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(ventana.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(ventana.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new ventana().setVisible(true); 
     
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel all;
    private javax.swing.JLabel andres;
    private javax.swing.JLabel ano;
    private javax.swing.JButton cargar;
    private javax.swing.JLabel intro;
    private javax.swing.JLabel javi;
    // End of variables declaration//GEN-END:variables
}
